﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class UserOrder : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            if (Request.QueryString["id"] != null)
            {
                int id = int.Parse(Request.QueryString["id"].ToString());
                loadOrder(id);
            }
        }
    }
    private void loadOrder(int id)
    {
        ChoDienTuDataContext cdt = new ChoDienTuDataContext();
        gvOrder.DataSource = cdt.Select_OrderByID(id);
        gvOrder.DataBind();
    }
}